package com.ruoyi.project.system.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.system.domain.SysAccounts;
import com.ruoyi.project.system.service.ISysAccountsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/employee/")
public class SysEmployeeController extends BaseController {

    @Autowired
    private ISysAccountsService sysAccountsService;

    // 用户返佣明细    查询
    @GetMapping("queryMoneyType")
    public TableDataInfo queryMoney(SysAccounts sysAccounts){
        return getDataTable(sysAccountsService.queryMoneyType(sysAccounts));
    }
}
